import org.restlet.data.Status;		

if (request.getMethod().getName().equalsIgnoreCase("POST"))
	response.setStatus(Status.SUCCESS_CREATED);
else
	response.setStatus(Status.SUCCESS_OK);